package cn.jbolt.core.poi.excel;

import org.apache.poi.ss.usermodel.CellStyle;

public class JBoltCellStyle {
	private int row;
	private int col;
	private CellStyle cellStyle;

	private JBoltCellStyle(int row, int col, CellStyle cellStyle) {
		this.row = row;
		this.col = col;
		this.cellStyle = cellStyle;
	}

	public int getRow() {
		return row;
	}

	public void setRow(int row) {
		this.row = row;
	}

	public int getCol() {
		return col;
	}

	public void setCol(int col) {
		this.col = col;
	}

	public CellStyle getCellStyle() {
		return cellStyle;
	}

	public void setCellStyle(CellStyle cellStyle) {
		this.cellStyle = cellStyle;
	}

	public static JBoltCellStyle create(int row, int col, CellStyle cellStyle) {
		return new JBoltCellStyle(row, col, cellStyle);
	}

	public static JBoltCellStyle create(int row, String colStr, CellStyle cellStyle) {
		return new JBoltCellStyle(row, JBoltExcelUtil.colStrToNum(colStr), cellStyle);
	}
}
